; author: Karel Pavelka, http://www.webjob.wz.cz/pspad/
[JSTools]
CSS on/off (IE&&MZ)=javascript:var%20i=0;if(document.styleSheets.length>0){cs=!document.styleSheets[0].disabled;for(i=0;i<document.styleSheets.length;i++)%20document.styleSheets[i].disabled=cs;};void(cs=true);
Toggle Image/Alt (IE)=javascript:if(document.images.length>0){(function(){function%20to(c){var%20a,k;a=new%20Array;for(k=0;k<c.length;++k)a[k]=c[k];return%20a;}var%20im,img,xt;im=to(document.images);for(var%20i=0;i<im.length;++i){img=im[i];e=document.createElement('span');void(e.style.background='#f5deb3');void(e.style.color='navy');if(img.attributes.alt.specified!=true){xt=document.createTextNode('NoAlt!')}else{xt=document.createTextNode('\"'+img.alt+'\"')}e.appendChild(xt);img.parentNode.replaceChild(e,img)}})();}else{history.go()}
Disable Plugins (IE)=javascript:(function(){function%20R(w){try{var%20d=w.document,j,i,t,T,N,b,r=1,C;for(j=0;t=["object","embed","applet","iframe"][j];++j){T=d.getElementsByTagName(t);for(i=T.length-1;(i+1)&&(N=T[i]);--i)if(j!=3||!R((C=N.contentWindow)?C:N.contentDocument.defaultView)){b=d.createElement("div");b.style.width=N.width;%20b.style.height=N.height;b.innerHTML="<del>"+(j==3?"third-party%20"+t:t)+"</del>";N.parentNode.replaceChild(b,N);}}}catch(E){r=0}return%20r}R(self);var%20i,x;for(i=0;x=frames[i];++i)R(x)})()
Linearize - Remove Tables (IE&&MZ)=javascript:(function(){var%20H=[],Y={TABLE:1,TR:1,TD:1,TH:1,CAPTION:1,DIV:1},d=[],p;%20function%20R(N){var%20a,x,i,t;%20if(t=N.tagName){%20t=t.toUpperCase();%20for%20(i=0;a=H[i];++i)if(N.getAttribute(a))N.removeAttribute(a);%20for(i=0;x=N.childNodes[i];++i)R(x);%20if%20(Y[t])d.push(N);%20}%20}%20R(document.documentElement);%20for%20(i=0;N=d[i];++i)%20{%20p=N.parentNode;%20while(N.firstChild)p.insertBefore(N.firstChild,N);%20p.removeChild(N);%20}%20})()
-=-
Show Style Sheet (IE)=javascript:var%20a=document.styleSheets;var%20s='<div%20style=\'font:x-small%20verdana\'><h1>Style%20sheet%20info%20for%20'+location.href+'</h1>';for%20(i=0;i<a.length;i++){var%20ss=a[i];s+='<h2>Style%20Sheet%20'+(i+1)+':%20'+ss.href+'</h2>';s+='<h2>Media:%20'+ss.media;s+='%20|%20Title:%20'+ss.title+'</h2>';s+='<h3>Rules:</h3>'+ss.cssText;s+='<hr>';}var%20a=s.split('\n');s=a.join('<br%20/>');s=s.toLowerCase()+'</div>';var%20cw=window.open('',%20'cw',%20'');cw.document.open();cw.document.write(s);cw.document.close();
View Partial Source (IE)=javascript:q=(document.frames.length?'':document.selection.createRange().htmlText);for(i=0;i<document.frames.length;i++){q=document.frames[i].document.selection.createRange().htmlText;if(q!='')break}if(q)t=(q);s=(q.replace(/</gi,'&lt;').replace(/>/gi,'&gt;').replace(/\n/gi,'<br>\n'));var%20m=window.open('',%20'm','');m.document.open();m.document.write('<h2>Selection</h2><div>'+t+'</div><h2>Source%20Code</h2><pre%20style=\'background-color:#f5f5dc\'>'+s+'</pre>');m.document.close()
View Generated Source (IE)=javascript:(function(){%20function%20htmlEscape(s){s=s.replace(/&/g,'&amp;');s=s.replace(/>/g,'&gt;');s=s.replace(/</g,'&lt;');return%20s;}%20x=window.open();%20x.document.write('<pre>'%20+%20htmlEscape('<html>\n'%20+%20document.documentElement.innerHTML%20+%20'\n</html>'));%20x.document.close();%20})();
Save as HTML (IE)=javascript:if(document.all)%7Bvoid(document.execCommand("SaveAs"))%7Delse%7Balert('Only%20for%20MSIE%204+');%7D
-=-
Show DIVs (IE&&MZ)=javascript:if(frames.length>1)alert('This%20bookmarklet%20does%20not%20work%20with%20frames.');else%20var%20t=document.getElementsByTagName('div');if(t.length=='')alert('No%20Div%20elements');else%20for(i=0;i<t.length;i++){void(t[i].style.padding='5px;');b=i+1;h=t[i].innerHTML;void(t[i].innerHTML='<p%20style=\'color:red;font-weight:bold;\'>'+b+'</p>'+h);void(t[i].style.border='1px%20dashed%20red');}
Table Cell Order (IE&&MZ)=javascript:var%20b=0;t=document.getElementsByTagName('*');{for(i=0;i<t.length;i++){if(t[i].tagName.toLowerCase()=='th'||t[i].tagName.toLowerCase()=='td'){b+=1;h=t[i].innerHTML;void(t[i].innerHTML='<span%20style=\'color:navy;font-weight:bold;background-color:#ffefd5;\'>'+b+'</span><br%20/>'+h);void(t[i].style.border='1px%20dashed%20red');}}}if(b==0)alert('No%20th%20or%20td%20Elements%20Used');
Show Images (IE)=javascript:var%20z=0,tag=new%20Array('img');for(n=0;n<tag.length;n++){t=document.getElementsByTagName(tag[n]);{for(i=0;i<t.length;i++){{var%20l;if(t[i].attributes.alt.specified)l='alt="'+t[i].alt+'"';else%20l='<strong%20style="color:red">NoAlt!</strong>'}h=t[i].outerHTML;void(t[i].outerHTML='<span%20style="color:navy;font:x-small%20arial;background:#f5deb3;"><b>&lt;'+tag[n]+'%20'+l+'&gt;</b></span>%20'+h);void(t[i].style.padding='3px',t[i].style.border='1px%20solid%20red');if(h!='')void(z=z+1);}}}if(z==0)alert('No%20Images');
AccessKeys=javascript:var%20z=0,tag=new%20Array('a','input','textarea','object','button','select','applet','embed');for(n=0;n<tag.length;n++){void(t=document.getElementsByTagName(tag[n]));for(i=0;i<t.length;i++){h=t[i].outerHTML;if(t[i].accessKey>""){void(t[i].outerHTML='<span%20style=\'color:navy;font:small%20bold;background-color:#f5deb3\'><strong>%20Accesskey%20('+t[i].accessKey+')%20</strong></span>%20'+h);if(h!='')z=z+1;}}}if(z==0)alert('No%20Accesskey%20Attributes%20Found');
Frame Borders =javascript:var%20theEls=document.getElementsByTagName('frame');if(theEls.length==0){alert('No%20Frames%20Found')}else{for(i=0;i%3CtheEls.length;i++)%7Bvoid(theEls%5Bi%5D.style.border='dashed%203px%20#dc143c');void(theEls%5Bi%5D.style.margin='5px')%7D}
Show Other Element(s) (IE&&MZ)=javascript:void(elName=prompt('Which%20elements?%20input,%20p,%20span%20...',''));void(brdrClr=prompt('What%20color?%20green,%20black,%20white...','red'));if(elName){theEls=document.getElementsByTagName(elName);if(theEls.length!=0){for(i=0;i%3ctheEls.length;i++){void(theEls[i].style.border='solid%202px%20red');void(theEls[i].style.borderColor=brdrClr)}}else{alert('no%20'+elName+'%20elements%20%20found')}}
-=-
Link List (IE)=javascript:var%20l=document.links.length;var%20s='';for%20(i=0;i<l;i++){var%20lk=document.links[i];s+='<tr>';s+='<td>'%20+%20lk.innerHTML%20+%20' </td>';s+='<td>'%20+%20lk.title%20+%20' </td>';s+='<td><a%20href='+lk.href+'>'%20+%20lk.href%20+%20'</a></td>';s+='</tr>';}s='<table%20border=1%20style=\'font:x-small%20verdana\'><caption>Links%20for:%20'+document.location.href+'</caption><tr><th>Text</th><th>Title</th><th>URL</th></tr>'+s+'</table>';var%20lw=window.open('',%20'lw',%20'');lw.document.open();lw.document.write(s);lw.document.close();
Frame Name/Title =javascript:var%20tag='frame';t=document.getElementsByTagName(tag);if(t.length==0){alert('No%20Frame%20Elements%20Found');}else{var%20s='';s='<ul>';for(i=0;i<t.length;i++){void(s+='<li><span%20style=\'color:black;font:small%20bold;font-family:arial;\'>'+tag+'-'+(i+1)+'<ul>%20<li>%20Name%20('+t[i].name+')</li>%20<li>Title%20('+t[i].title+')</li>%20<li>Src%20(<a%20href="'+t[i].src+'">'+t[i].src+'</a>)</span></li></ul></li>');}s+='</ul>';var%20lw=window.open('','lw','');lw.document.open();lw.document.write(s);lw.document.close();}
List Frames =javascript:(function(){var%20s='';function%20getF(w,lvl){try{if(lvl>0){s+='<body%20style=\'font:smaller%20arial\'><ul><li>';if(w.name!='')s+='<b>'+w.name+'</b><br>\n';}else{s+='<b>'+w.document.title+'</b><br>\n';}s+='<a%20href=\''+w.location.href+'\'>'+w.location.href+'</a>\n';for(var%20i=0;F=w.frames[i];i++){getF(F,++lvl);}if(lvl>0)s+='</li></ul></body>\n';}catch(e){s+='(IFRAME%20or%20cross-domain)\n';}}if(!frames.length)alert('No%20frames.');else{getF(window,0);w=open();w.document.write(s);w.document.close();}})()
-=-
Metadata information (IE)=javascript:var%20s='';var%20mt=document.getElementsByTagName('meta');for(i=0;i<mt.length;i++){s=s+'<tr%20valign=top>';s=s+'<td>'+mt[i].name+'&nbsp;</td>';s=s+'<td>'+mt[i].content+'</td>';s=s+'<td>'+mt[i].httpEquiv+'&nbsp;</td>';s=s+'</tr>';}s='<p%20style=\'font:.8em%20arial;\'><b>URL%20</b>'+document.location.href+'</p><table%20border=1%20style=\'font:.8em%20arial\'><tr><th>Name</th><th>Content</th><th>HttpEquiv</th></tr>'+s+'</table>';var%20m=window.open('','m','');m.document.open();m.document.write(s);m.document.close();
Colours used (IE)=javascript:void(S=document.body.innerHTML.replace(/href="[^"]*"/g,'').replace(/&#[0-9]{3,6};/g,''),sS=document.styleSheets,w='<tt>',L=new%20Array());for(i=0;i<sS.length;i++){void(S+=sS[i].cssText);}if(K=S.match(/#[0-9a-f]{3,6}/gi)){for(k=0;k<K.length;k++){if(!L[K[k]]){w+=L[K[k]]='<body%20bgcolor=#c0c0c0><div%20style="border-left:20px%20solid%20'+K[k]+';color:'+K[k]+'"> '+K[k]+'</div>'}}void(window.open().document.write(w));}else{void(alert('No%20colors%20found.'))}
-=-
Greyscale (IE)=javascript:if(document.all)%7Bdocument.body.style.filter='gray()';void(null);%7Delse%7Balert('Only%20for%20MSIE%204+');%7D
Negative (IE)=javascript:if(document.all)%0D%0A%7B%0D%0A%20%20document.body.style.filter='Xray()';%0D%0A%20%20void(null);%0D%0A%7D%0D%0Aelse%0D%0A%7B%0D%0A%20%20alert('Only%20for%20MSIE%204+');%0D%0A%7D
Magnify 200% (IE)=javascript:void(s=document.body.style);void(z=s.getAttribute('zoom'));if(z){s.setAttribute('zoom',(parseInt(z)+100)+'%');}else%20s.setAttribute('zoom','200%');
Magnify 400% (IE)=javascript:void(s=document.body.style);void(z=s.getAttribute('zoom'));if(z){s.setAttribute('zoom',(parseInt(z)+100)+'%');}else%20s.setAttribute('zoom','400%');
Cataracts (IE)=javascript:if(document.all)%7Bdocument.body.style.filter='blur(PixelRadius=3,MakeShadow=false)';void(null);%7Delse%7Balert('Only%20for%20MSIE%204+');%7D
-=-
Encode E-mail=javascript:void(e=prompt('E-mail%20address',''));if(e)%7B%20var%20l=e.length;var%20c='';var%20c2='';var%20u='';for(var%20i=0;i%3Cl;i++)%7B%20c=e.charCodeAt(i);c2%20+='&amp;#'+%20c.toString()%20+';';u+='%25'+c.toString(16);%7Dvar%20a='&lt;a%20href=%22&amp;#109;&amp;#97;&amp;#105;&amp;#108;&amp;#116;&amp;#111;&amp;#58;'+u+'%22%3E'+c2%20+'&lt;/a&gt;';var%20r=window.open('',%20'r',%20'');r.document.open();r.document.write(a);r.document.close();%7D

[WindowSize]
IE 640x480=620x305
IE 800x600=780x448
IE 1024x768=1004x606
640x480=640x460
800x600=800x600
1024x768=1024x768
PDA 240x320=240x320
PDA 480x640=480x640
PALM 240x240=240x240
PALM 480x480=480x480